/**
 * output package name
 */
package com.kingdee.eas.basedata.person;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class BloodType extends IntEnum
{
    public static final int UNKNOWN_VALUE = 0;
    public static final int A_VALUE = 10;
    public static final int B_VALUE = 20;
    public static final int AB_VALUE = 30;
    public static final int O_VALUE = 40;
    public static final int OTHER_VALUE = 90;

    public static final BloodType Unknown = new BloodType("Unknown", UNKNOWN_VALUE);
    public static final BloodType A = new BloodType("A", A_VALUE);
    public static final BloodType B = new BloodType("B", B_VALUE);
    public static final BloodType AB = new BloodType("AB", AB_VALUE);
    public static final BloodType O = new BloodType("O", O_VALUE);
    public static final BloodType Other = new BloodType("Other", OTHER_VALUE);

    /**
     * construct function
     * @param integer bloodType
     */
    private BloodType(String name, int bloodType)
    {
        super(name, bloodType);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static BloodType getEnum(String bloodType)
    {
        return (BloodType)getEnum(BloodType.class, bloodType);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static BloodType getEnum(int bloodType)
    {
        return (BloodType)getEnum(BloodType.class, bloodType);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(BloodType.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(BloodType.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(BloodType.class);
    }
}